package com.xt.base.model.dictionary;


/**
 * 应用类别字典 <br>
 * 
 * <p>
 * <a href="ApplicationType.java.html"><i>查看源文件</i></a>
 * </p>
 * 
 * @author 杨洪波
 * @version $Revision: $<br>
 *          $Id: $
 * @hibernate.subclass name="ApplicationType" discriminator-value="ApplicationType"
 */
public class ApplicationType extends BaseDictionary{

	private static final long serialVersionUID = 2089519961801423219L;
	
	/** 应用分类标记 */
	private String applicationSymbol;
	
	/** 描述 */
	private String description;
	
	/** 显示顺序 */
	private Integer displayOrder = 0;

	/** 图标名称 */
	private String imageName;

	public ApplicationType(){
		super();
	}
	
	public ApplicationType(String name){
		super(name);
	}
	
	public ApplicationType(String name,String nationalCode){
		super(name,nationalCode);
	}

	public ApplicationType(String name,String nationalCode,String applicationSymbol,ApplicationType catalog){
		super(name,nationalCode);
		this.applicationSymbol = applicationSymbol;
		this.superior = catalog;
	}

	public int compareTo(Object o) {
		if(o == null)return 0;
		return displayOrder - ((ApplicationType)o).displayOrder;
	}
	
	/**
	 * @hibernate.property column="ApplicationSymbol"
	 * @return 应用分类标记
	 */
	public String getApplicationSymbol() {
		return applicationSymbol;
	}

	public void setApplicationSymbol(String applicationSymbol) {
		this.applicationSymbol = applicationSymbol;
	}

	/**
	 * @hibernate.property column="Description"
	 * @return 描述
	 */
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @hibernate.property column="DisplayOrder"
	 * @return 显示顺序
	 */
	public int getDisplayOrder() {
		return displayOrder;
	}

	public void setDisplayOrder(int displayOrder) {
		this.displayOrder = displayOrder;
	}

	/**
	 * @hibernate.property column="ImageName"
	 * @return 图标名称
	 */
	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

}
